home *** CD-ROM | disk | FTP | other *** search
/ Clickx 31 / Clickx 31.iso / assets / software / MyServer-win32-0.8.2.exe / web / documentation / texts / cgi.htm < prev    next >
Encoding:
Extensible Markup Language  |  2005-06-22  |  2.4 KB  |  64 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  3.   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  5. <head>
  6. <title>MyServer Documentation - CGI - www.myserverproject.net</title>
  7. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  8. <meta http-equiv="Content-Style-Type" content="text/css" />
  9. <link rel="stylesheet" type="text/css" href="../style/myserver.css" />
  10. </head>
  11. <body>
  12. <table class="center" width="95%">
  13. <tr>
  14. <td class="center">
  15. <h1 class="title">CGI<br />
  16. </h1>
  17. CGI (Common Gateway Interface) is the standard way in which a web
  18. server passes a user's data to an application and then returns
  19. information to the user. CGI depends on scripts often written in
  20. languages such as <a href="php.html">PHP </a>or <a href="perl.html">Perl</a>
  21. to perform the actions that are requested by the user. In order
  22. to access the CGI script, the name of the application is indicated in
  23. the HTML code.<br />
  24. <br />
  25. For example, if you are creating the form, the URL of the script is
  26. indicated in the FORMS tag:<br />
  27. <p class="code"> <FORM METHOD=POST
  28. ACTION=www.myfiles.com/cgi-bin/myprog.pl><br />
  29. </p>
  30. <p>Note: Any Script Language that can pipe output can be
  31. used, though -
  32. you can have scripts in Shell Script, Python, etc. You just need
  33. to configure the correct MIME type, and your favorite scripting language
  34. will work in MyServer.</p>
  35.  
  36. In order to keep all of the CGI scripts in one place, you can place a <span
  37.  class="code">cgi-bin</span>
  38. directory in the <span class="code">web</span> directory in MyServer
  39. as seen below:<br />
  40. <br />
  41. <br />
  42.       <div class="boxc"><img src="../images/myfiles.png" title=""
  43.  alt="Web folder" width="468" height="260" /><br />
  44. </div>
  45. <div style="text-align: center;"><small>The cgi-bin directory is directly
  46. beneath the selected web folder.</small><br />
  47. </div>
  48. <br />
  49. <br />
  50. <br />
  51. However, CGI scripts can be placed anywhere as long as their location
  52. is indicated in the HTML code and they are mapped to be CGI through their extension.<br />
  53. <br />
  54. CGI scripts that a new process is created for every requests. This can cause some problems with 
  55. performances but ensure some security as if the new process crashes the main MyServer process 
  56. is not corrupted.
  57. <br />
  58. <br />
  59. </td>
  60. </tr>
  61. </table>
  62. </body>
  63. </html>
  64.